//
//  SNKTopImageCell.m
//  SleepNews
//
//  Created by Kavee DJ on 2016/12/10.
//  Copyright © 2016年 Kavee DJ. All rights reserved.
//

#import "SNKTopImageCell.h"

@implementation SNKTopImageCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"TopImagecell";
    SNKTopImageCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        cell = [[SNKTopImageCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
        
    }
    
    return cell;
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.textLabel.text = @"Test";
    }
    return self;
}

- (void)setFrame:(CGRect)frame {
    
    frame.size.height -= 1;
    [super setFrame:frame];
}


@end
